/*
* @Author: gavin
* @Date:   2017-12-21 15:55:02
* @Last Modified by:   gavin
* @Last Modified time: 2017-12-24 17:24:13
*/
// 需要是一个map的store，比如文章详情，推荐列表等等
import { observable, computed, action, runInAction, autorun,map } from 'mobx';

class mapStore<T> {
    @observable data = observable.map<T>();
    get(id: string) { return this.data.get(id); }
    set(id: string, value: Detail) { this.data.set(id, value); }
    has(id: string) { return this.data.has(id); }
};
export default mapStore;
